package com.example.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.model.OrderItem;
import com.example.demo.model.corder;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderDao extends BaseMapper<corder> {

        //插入订单数据
        Integer insertOrder(corder order);
        //插入订单项的数据
        Integer insertOrderItem(OrderItem orderItem);
        //查找订单
        corder findOrder(Integer uid);
        //查找订单详情
        OrderItem findOrderItem(Integer oid);
}

